﻿using Bible.Core.Interface;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;

namespace Bible.Core.Model
{
    [DataContract]
    public class Chapter : IChapter
    {
        private readonly IList<object> _verses;

        public Chapter()
            : this(new List<object>())
        { }

        public Chapter(IEnumerable<object> chapters)
        {
            if (chapters != null)
            {
                _verses = chapters.ToList();
            }
        }

        [DataMember]
        public IList<object> Verses { get { return _verses; } }
    }
}